#define _CRT_SECURE_NO_WARNINGS 1 // use for depreate the warning error of scanf
#include <stdio.h>
void main80(void)
{
    double income=123.45, expenses=987.65;
    int week=7, year=2006;
    FILE *myfile;

    myfile = fopen ("output.txt","w");
    fprintf(myfile,"Week=%5d\nYear=%5d\n",week,year);
    fprintf(myfile,"Income  =%7.2lf\nExpenses=%8.3lf\n",
             income,expenses);
    fclose(myfile);
}
